//
//  historyTool.h
//  欢乐美食
//
//  Created by 遇水 on 15/6/27.
//  Copyright (c) 2015年 遇水. All rights reserved.
//

#import <Foundation/Foundation.h>

//主要用来保存搜索记录

#import "MSDeals.h"
@interface historyTool : NSObject

@property (nonatomic, strong, readonly) NSMutableArray    *history;         //历史
@property (nonatomic, strong, readonly) NSMutableArray    *collectes;        //收藏

HMSingletonH(historyTool)

//定义一个方法用来保存
-(void)saveHistoryDeal:(MSDeals *)deal;     //保存历史记录
-(void)unsaveHistoryDeal:(MSDeals *)deal;     //删除历史记录


-(void)saveCollectes:(MSDeals *)deal;      //收藏
-(void)unsaveCollectes:(MSDeals *)deal;     //取消收藏

@end
